<!doctype html>



  


<html class="theme-next pisces use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  
    
      
    

    
  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Monda:300,300italic,400,400italic,700,700italic|consolas:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Android,学习笔记," />





  <link rel="alternate" href="/atom.xml" title="🐕 @Leeifme" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.0.1" />






<meta name="description" content="工欲善其事必先利其器   修改idea.properties文件找到 &amp;lt;android-studio&amp;gt;\bin\idea.properties文件，打开，改成这样：">
<meta name="keywords" content="Android,学习笔记">
<meta property="og:type" content="article">
<meta property="og:title" content="Android Studio配置记录">
<meta property="og:url" content="http://www.leeif.me/technology/Android/Android Studio配置/index.html">
<meta property="og:site_name" content="🐕 @Leeifme">
<meta property="og:description" content="工欲善其事必先利其器   修改idea.properties文件找到 &amp;lt;android-studio&amp;gt;\bin\idea.properties文件，打开，改成这样：">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/12744232249178.jpg">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/1.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/2.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/3.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/4.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/5.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/6.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/7.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/8.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/9.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/10.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/11.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/12.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/13.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/14.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/15.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/16.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/17.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/18.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/19.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/20.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/21.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/22.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/23.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/24.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/25.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/26.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/27.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/28.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/29.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/30.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/31.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/32.png">
<meta property="og:image" content="http://oevjzwupb.bkt.clouddn.com/33.png">
<meta property="og:updated_time" content="2017-07-02T09:55:16.998Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Android Studio配置记录">
<meta name="twitter:description" content="工欲善其事必先利其器   修改idea.properties文件找到 &amp;lt;android-studio&amp;gt;\bin\idea.properties文件，打开，改成这样：">
<meta name="twitter:image" content="http://oevjzwupb.bkt.clouddn.com/12744232249178.jpg">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Pisces',
    sidebar: {"position":"right","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: undefined,
      author: 'Author'
    }
  };
</script>




  <link rel="canonical" href="http://www.leeif.me/technology/Android/Android Studio配置/"/>

  <title> Android Studio配置记录 | 🐕 @Leeifme </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="en">

  










  
  
    
  

  <div class="container one-collumn sidebar-position-right page-post-detail ">
    <div class="headband"></div>
    
    <header id="header_post" class="header" itemscope itemtype="http://schema.org/WPHeader" style="background-image: url('/images/4.jpg');">
      <div class="header-inner-post"><a class="site-home" href="/">🐕 @Leeifme</a>

<div class="site-meta custom-logo">
  
  
  
    <div class="site-meta-headline">
      <a>
        <img class="custom-logo-image" src="/images/logo.png" style="width: 80px"
             alt="🐕 @Leeifme"/>
      </a>
    </div>
  

  
  
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        
        
           <li class="menu-item menu-item-about">
             <a href="/about" rel="section">
               
                 <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
               
               
               about
             </a>
           </li>
        
      
        
        
        
           <li class="menu-item menu-item-movie">
             <a href="/movie" rel="section">
               
                 <i class="menu-item-icon fa fa-fw fa-superscript"></i> <br />
               
               
               movie
             </a>
           </li>
        
      
        
        
        
           <li class="menu-item menu-item-coding">
             <a href="/categories/coding" rel="section">
               
                 <i class="menu-item-icon fa fa-fw fa-cogs"></i> <br />
               
               
               coding
             </a>
           </li>
        
      
        
        
        
           <li class="menu-item menu-item-archives">
             <a href="/archives" rel="section">
               
                 <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
               
               
               archives
             </a>
           </li>
        
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            Search
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup">
 <input type="text" id="local-search-input">
 <span class="search-icon fa fa-search"></span>
 <div id="local-search-result"></div>
 <span class="popup-btn-close">close</span>
</div>


    </div>
  
</nav>

 </div>
      <div class="header-post"> 
  <div class="post-header">
      <div class="tags">
      
        <a href="/tags/Android/" rel="tag" title="Android">Android</a>
      
        <a href="/tags/学习笔记/" rel="tag" title="学习笔记">学习笔记</a>
      
      </div>
      <h1>Android Studio配置记录</h1>
      <h2 class="subtitle"></h2>
      <div class="post-time">
        <span class="post-meta-item-text">Posted on </span>
        <time itemprop="dateCreated" datetime="2017-02-05T08:00:00+08:00" content="2017-02-05" title="2017-02-05 08:00:00">
          2017-02-05
        </time>
      </div>
  </div>
 </div>
    </header>


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                Android Studio配置记录
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2017-02-05T08:00:00+08:00" content="2017-02-05">
              2017-02-05
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/share/" itemprop="url" rel="index">
                    <span itemprop="name">share</span>
                  </a>
                </span>

                
                
                  , 
                

              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/share/technology/" itemprop="url" rel="index">
                    <span itemprop="name">technology</span>
                  </a>
                </span>

                
                

              
            </span>
          

          <!-- 
            
           -->

          

          
          
             <span id="/technology/Android/Android Studio配置/" class="leancloud_visitors" data-flag-title="Android Studio配置记录">
               &nbsp; | &nbsp;
               <span class="post-meta-item-icon">
                 <i class="fa fa-eye"></i>
               </span>
               <span class="post-meta-item-text">visitors </span>
               <span class="leancloud-visitors-count"></span>
              </span>
          

          
              &nbsp; | &nbsp;
              <span class="page-pv"><i class="fa fa-eye"> </i>
              <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>
              </span>
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <link rel="stylesheet" type="text/css" href="/assets/css/DPlayer.min.css"><script src="/assets/js/DPlayer.min.js"> </script><script src="/assets/js/APlayer.min.js"> </script><blockquote class="blockquote-center">工欲善其事必先利其器</blockquote>

<p><img src="http://oevjzwupb.bkt.clouddn.com/12744232249178.jpg"></p>
<h2 id="修改idea-properties文件"><a href="#修改idea-properties文件" class="headerlink" title="修改idea.properties文件"></a>修改idea.properties文件</h2><p>找到 <code>&lt;android-studio&gt;\bin\idea.properties</code>文件，打开，改成这样：</p>
<a id="more"></a>
<p><img src="http://oevjzwupb.bkt.clouddn.com/1.png"></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line"><span class="meta">#</span><span class="bash">禁止第一次运行Android Studio时，自动检查和升级Android SDK</span></div><div class="line">disable.android.first.run=true</div><div class="line"><span class="meta"></span></div><div class="line">#<span class="bash"> 下面两个是Android Studio的设置、插件和运行时产生的其他文件存放的目录</span></div><div class="line"><span class="meta">#</span><span class="bash"> 不改的话，Windows中默认在 C:\Users&lt;username&gt;.AndroidStudio.2\ 里面</span></div><div class="line"><span class="meta">#</span><span class="bash"> <span class="variable">$&#123;idea.home.path&#125;</span>表示Android Studio程序的主目录，注意目录分隔符要用正斜杠“/”</span></div><div class="line">idea.config.path=$&#123;idea.home.path&#125;/.AndroidStudio.2/config</div><div class="line">idea.system.path=$&#123;idea.home.path&#125;/.AndroidStudio.2/system</div></pre></td></tr></table></figure>
<h2 id="设置主题-窗口大小-动画效果"><a href="#设置主题-窗口大小-动画效果" class="headerlink" title="设置主题,窗口大小,动画效果"></a>设置主题,窗口大小,动画效果</h2><p>①修改主题 ②修改全局窗口字体(需要选择中文字体,最好默认不做修改),字号 ③ 窗口动画(电脑性能不怎样可以禁止掉)</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/2.png"></p>
<h2 id="修改menu或者toolBar"><a href="#修改menu或者toolBar" class="headerlink" title="修改menu或者toolBar"></a>修改menu或者toolBar</h2><p>这里我是添加了创建class,fragment,activity的ToolBar,这个根据个人情况</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/3.png"></p>
<h2 id="打开工程设置"><a href="#打开工程设置" class="headerlink" title="打开工程设置"></a>打开工程设置</h2><p>①禁用自动打开上次关闭工程 ,禁用退出提示  ②打开新项目提示方式</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/4.png"></p>
<h2 id="设置网络代理"><a href="#设置网络代理" class="headerlink" title="设置网络代理"></a>设置网络代理</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/5.png"></p>
<h2 id="禁用自动检查更新"><a href="#禁用自动检查更新" class="headerlink" title="禁用自动检查更新"></a>禁用自动检查更新</h2><p>①取消自动更新</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/6.png"></p>
<h2 id="配置快捷键"><a href="#配置快捷键" class="headerlink" title="配置快捷键"></a>配置快捷键</h2><p>①自定义快捷键②根据内容搜索快捷键③根据按键搜索快捷键④删除快捷键</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/7.png"></p>
<h2 id="编辑器"><a href="#编辑器" class="headerlink" title="编辑器"></a>编辑器</h2><p>①鼠标悬停显示文档 ②格式化&amp;导包提示</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/8.png"></p>
<p>鼠标指针悬停若干时间，显示文档，时间自己改。就是按格式化代码或者导包时，是否会显示个对话框，觉得烦人的话，都取消掉吧</p>
<h2 id="显示行号，显示方法分隔线"><a href="#显示行号，显示方法分隔线" class="headerlink" title="显示行号，显示方法分隔线"></a>显示行号，显示方法分隔线</h2><p>①显示行号 ②显示方法分隔符</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/9.png"></p>
<h2 id="代码折叠"><a href="#代码折叠" class="headerlink" title="代码折叠"></a>代码折叠</h2><p>①取消方法自动折叠</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/10.png"></p>
<h2 id="代码智能提示"><a href="#代码智能提示" class="headerlink" title="代码智能提示"></a>代码智能提示</h2><p>① 敲什么都提示②③提示时间设置</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/11.png"></p>
<p>敲什么字符会提示，All(大小写全部符合)，None（不管大小写，符合就提示），（First letter）（第一个字符符合就OK，其他随意）。我这种脑残没记性的当然选择None。时间设置根据自己电脑性能.</p>
<h2 id="自动导包"><a href="#自动导包" class="headerlink" title="自动导包"></a>自动导包</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/12.png"></p>
<p>Optimize imports on the fly：优化导包，格式化代码时会删掉多余的导包。Add unambiguous imports on the fly：敲代码时，敲简单类名就帮你把包导了。</p>
<h2 id="创建个人代码样式配置"><a href="#创建个人代码样式配置" class="headerlink" title="创建个人代码样式配置"></a>创建个人代码样式配置</h2><p>估计是为了保护默认的代码样式配置，让用户把配置搞坏了也能一键还原，IDEA不允许修改默认的配置，需要用户创建配置才能进行修改。<br>选择基于哪个主题的，然后Save As一份即可。</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/13.png"></p>
<h2 id="修改代码字体"><a href="#修改代码字体" class="headerlink" title="修改代码字体"></a>修改代码字体</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/14.png"></p>
<h2 id="修改控制台字体"><a href="#修改控制台字体" class="headerlink" title="修改控制台字体"></a>修改控制台字体</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/15.png"></p>
<h2 id="Logcat字体"><a href="#Logcat字体" class="headerlink" title="Logcat字体"></a>Logcat字体</h2><p>要改的话，得先把1那个地方的勾取消掉,默认android Logcat 每个级别的颜色都是一样的.建议修改</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/16.png"></p>
<h2 id="修改注释位置"><a href="#修改注释位置" class="headerlink" title="修改注释位置"></a>修改注释位置</h2><p>禁用“语句堆一行”</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/17.png"></p>
<p>Comment at frist column：启用的话，注释符号就会在行首，否则就按照缩进来注释。Control statement in one line：格式化代码的时候，会把些很短的语句合并成一行。这样影响代码可读性.</p>
<h2 id="修改变量前后缀"><a href="#修改变量前后缀" class="headerlink" title="修改变量前后缀"></a>修改变量前后缀</h2><p>静态成员是s，普通成员是m，转换成成员变量的时候自动加上m,生成setter,getter的时候会忽视m,很好很强大.</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/18.png"></p>
<h2 id="取消Android-Lint-检查"><a href="#取消Android-Lint-检查" class="headerlink" title="取消Android Lint 检查"></a>取消Android Lint 检查</h2><p>一定程度加快速度吧</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/19.png"></p>
<h2 id="修改新建文件文件头"><a href="#修改新建文件文件头" class="headerlink" title="修改新建文件文件头"></a>修改新建文件文件头</h2><p>每次建新类,会加上这样的头信息</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/20.png"></p>
<p>上图就是通用的文件头，框住的地方是你系统的用户名，想个性化的话，可以改这里，至于哪里引用这个文件头的呢，就在隔壁。</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/21.png"></p>
<h2 id="修改文件编码为UTF-8"><a href="#修改文件编码为UTF-8" class="headerlink" title="修改文件编码为UTF-8"></a>修改文件编码为UTF-8</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/22.png"><br>别坑队友，小伙伴们都统一改为UTF-8吧。</p>
<h2 id="自己定义Live-Templates"><a href="#自己定义Live-Templates" class="headerlink" title="自己定义Live Templates"></a>自己定义Live Templates</h2><p>模板定义,方便开发,减少重复代码</p>
<p><img src="http://oevjzwupb.bkt.clouddn.com/23.png"></p>
<h2 id="添加管理插件"><a href="#添加管理插件" class="headerlink" title="添加管理插件"></a>添加管理插件</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/24.png"></p>
<h2 id="Svn添加移除项目"><a href="#Svn添加移除项目" class="headerlink" title="Svn添加移除项目"></a>Svn添加移除项目</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/25.png"></p>
<h2 id="配置Svn安装路径"><a href="#配置Svn安装路径" class="headerlink" title="配置Svn安装路径"></a>配置Svn安装路径</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/26.png"></p>
<h2 id="Github账号绑定"><a href="#Github账号绑定" class="headerlink" title="Github账号绑定"></a>Github账号绑定</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/27.png"></p>
<h2 id="配置git安装路径"><a href="#配置git安装路径" class="headerlink" title="配置git安装路径"></a>配置git安装路径</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/28.png"></p>
<h2 id="配置Gradle安装路径-离线模式-本地Gradle仓库"><a href="#配置Gradle安装路径-离线模式-本地Gradle仓库" class="headerlink" title="配置Gradle安装路径,离线模式,本地Gradle仓库"></a>配置Gradle安装路径,离线模式,本地Gradle仓库</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/29.png"></p>
<h2 id="配置maven仓库路径"><a href="#配置maven仓库路径" class="headerlink" title="配置maven仓库路径"></a>配置maven仓库路径</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/30.png"></p>
<h2 id="项目自动编译"><a href="#项目自动编译" class="headerlink" title="项目自动编译"></a>项目自动编译</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/31.png"></p>
<h2 id="Gradle-Task超时时间"><a href="#Gradle-Task超时时间" class="headerlink" title="Gradle Task超时时间"></a>Gradle Task超时时间</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/32.png"> </p>
<h2 id="优化-取消同步"><a href="#优化-取消同步" class="headerlink" title="优化-取消同步"></a>优化-取消同步</h2><p><img src="http://oevjzwupb.bkt.clouddn.com/33.png"></p>

      
    </div>


    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/Android/" rel="tag">#Android</a>
          
            <a href="/tags/学习笔记/" rel="tag">#学习笔记</a>
          
        </div>
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/hello-world/" rel="next" title="Hello World">
                <i class="fa fa-chevron-left"></i> Hello World
              </a>
            
          </div>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/technology/Android/Android Studio中使用.9图片出错解决方案/" rel="prev" title="Android Studio中使用.9图片出错解决方案">
                Android Studio中使用.9图片出错解决方案 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>

          
          </div>
          


          
  <div class="comments" id="comments">
    
      <div id="hypercomments_widget"></div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      
      
        
          <ul class="sidebar-nav motion-element">
            <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
              Table of Contents
            </li>
            <li class="sidebar-nav-overview" data-target="site-overview">
              Overview
            </li>
          </ul>
        
      



      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/avatar.jpg"
               alt="睡沙发的沙皮狗" />
          <p class="site-author-name" itemprop="name">睡沙发的沙皮狗</p>
           
              <p class="site-description motion-element" itemprop="description">睡沙发的沙皮狗 Leeifme</p>
          
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives">
                <span class="site-state-item-count">17</span>
                <span class="site-state-item-name">posts</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              
                <span class="site-state-item-count">12</span>
                <span class="site-state-item-name">categories</span>
              
            </div>
          

          
            
            
            <div class="site-state-item site-state-tags">
              
                <span class="site-state-item-count">12</span>
                <span class="site-state-item-name">tags</span>
              
            </div>
          

        </nav>

        
          <div class="feed-link motion-element">
            <a href="/atom.xml" rel="alternate">
              <i class="fa fa-rss"></i>
              RSS
            </a>
          </div>
        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/leeifme" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://weibo.com/5406937103/profile?topnav=1&wvr=6" target="_blank" title="微博">
                  
                    <i class="fa fa-fw fa-weibo"></i>
                  
                  微博
                </a>
              </span>
            
          
        </div>

        
        
          <div class="cc-license motion-element" itemprop="license">
            <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" class="cc-opacity" target="_blank">
              <img src="/images/cc-by-nc-sa.svg" alt="Creative Commons" />
            </a>
          </div>
        

        
        

        


      </section>
      
        
        <!--noindex-->
          <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
            <div class="post-toc">

              
                
              

              
                <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#修改idea-properties文件"><span class="nav-number">1.</span> <span class="nav-text">修改idea.properties文件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#设置主题-窗口大小-动画效果"><span class="nav-number">2.</span> <span class="nav-text">设置主题,窗口大小,动画效果</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改menu或者toolBar"><span class="nav-number">3.</span> <span class="nav-text">修改menu或者toolBar</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#打开工程设置"><span class="nav-number">4.</span> <span class="nav-text">打开工程设置</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#设置网络代理"><span class="nav-number">5.</span> <span class="nav-text">设置网络代理</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#禁用自动检查更新"><span class="nav-number">6.</span> <span class="nav-text">禁用自动检查更新</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#配置快捷键"><span class="nav-number">7.</span> <span class="nav-text">配置快捷键</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#编辑器"><span class="nav-number">8.</span> <span class="nav-text">编辑器</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#显示行号，显示方法分隔线"><span class="nav-number">9.</span> <span class="nav-text">显示行号，显示方法分隔线</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#代码折叠"><span class="nav-number">10.</span> <span class="nav-text">代码折叠</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#代码智能提示"><span class="nav-number">11.</span> <span class="nav-text">代码智能提示</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#自动导包"><span class="nav-number">12.</span> <span class="nav-text">自动导包</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#创建个人代码样式配置"><span class="nav-number">13.</span> <span class="nav-text">创建个人代码样式配置</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改代码字体"><span class="nav-number">14.</span> <span class="nav-text">修改代码字体</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改控制台字体"><span class="nav-number">15.</span> <span class="nav-text">修改控制台字体</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Logcat字体"><span class="nav-number">16.</span> <span class="nav-text">Logcat字体</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改注释位置"><span class="nav-number">17.</span> <span class="nav-text">修改注释位置</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改变量前后缀"><span class="nav-number">18.</span> <span class="nav-text">修改变量前后缀</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#取消Android-Lint-检查"><span class="nav-number">19.</span> <span class="nav-text">取消Android Lint 检查</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改新建文件文件头"><span class="nav-number">20.</span> <span class="nav-text">修改新建文件文件头</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改文件编码为UTF-8"><span class="nav-number">21.</span> <span class="nav-text">修改文件编码为UTF-8</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#自己定义Live-Templates"><span class="nav-number">22.</span> <span class="nav-text">自己定义Live Templates</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#添加管理插件"><span class="nav-number">23.</span> <span class="nav-text">添加管理插件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Svn添加移除项目"><span class="nav-number">24.</span> <span class="nav-text">Svn添加移除项目</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#配置Svn安装路径"><span class="nav-number">25.</span> <span class="nav-text">配置Svn安装路径</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Github账号绑定"><span class="nav-number">26.</span> <span class="nav-text">Github账号绑定</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#配置git安装路径"><span class="nav-number">27.</span> <span class="nav-text">配置git安装路径</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#配置Gradle安装路径-离线模式-本地Gradle仓库"><span class="nav-number">28.</span> <span class="nav-text">配置Gradle安装路径,离线模式,本地Gradle仓库</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#配置maven仓库路径"><span class="nav-number">29.</span> <span class="nav-text">配置maven仓库路径</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#项目自动编译"><span class="nav-number">30.</span> <span class="nav-text">项目自动编译</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Gradle-Task超时时间"><span class="nav-number">31.</span> <span class="nav-text">Gradle Task超时时间</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#优化-取消同步"><span class="nav-number">32.</span> <span class="nav-text">优化-取消同步</span></a></li></ol></div>
              

            </div>
          </section>
        <!--/noindex-->
        
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">睡沙发的沙皮狗</span>
</div>

<div class="powered-by">
  Powered by <a class="theme-link" href="http://hexo.io">Hexo</a>
</div>

<div class="theme-info">
  Theme -
  <a class="theme-link" href="https://github.com/zproo/hexo-blog">
    Next
  </a>
</div>

        

<div class="busuanzi-count">

  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv"><i class="fa fa-user"></i><span class="busuanzi-value" id="busuanzi_value_site_uv"></span></span>
  

  
    <span class="site-pv"><i class="fa fa-eye"> </i><span class="busuanzi-value" id="busuanzi_value_site_pv"></span></span>
  
  
</div>



        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  




  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

  
  <script type="text/javascript" src="/lib/canvas-ribbon/canvas-ribbon.js"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.1"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.0.1"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.0.1"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.0.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.0.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.1"></script>



  



  





	

		<script type="text/javascript">
		_hcwp = window._hcwp || [];

		_hcwp.push({widget:"Bloggerstream", widget_id: 92841, selector:".hc-comment-count", label: "{\%COUNT%\}" });

		
		_hcwp.push({widget:"Stream", widget_id: 92841, xid: "technology/Android/Android Studio配置/"});
		

		(function() {
		if("HC_LOAD_INIT" in window)return;
		HC_LOAD_INIT = true;
		var lang = (navigator.language || navigator.systemLanguage || navigator.userLanguage || "en").substr(0, 2).toLowerCase();
		var hcc = document.createElement("script"); hcc.type = "text/javascript"; hcc.async = true;
		hcc.src = ("https:" == document.location.protocol ? "https" : "http")+"://w.hypercomments.com/widget/hc/92841/"+lang+"/widget.js";
		var s = document.getElementsByTagName("script")[0];
		s.parentNode.insertBefore(hcc, s.nextSibling);
		})();
		</script>

	







  
  
  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length == 0) {
       search_path = "search.xml";
    }
    var path = "/" + search_path;
    // monitor main search box;

    function proceedsearch() {
      $("body").append('<div class="popoverlay">').css('overflow', 'hidden');
      $('.popup').fadeToggle();

    }
    // search function;
    var searchFunc = function(path, search_id, content_id) {
    'use strict';
    $.ajax({
        url: path,
        dataType: "xml",
        async: true,
        success: function( xmlResponse ) {
            // get the contents from search data
            isfetched = true;
            $('.popup').detach().appendTo('.header-inner');
            var datas = $( "entry", xmlResponse ).map(function() {
                return {
                    title: $( "title", this ).text(),
                    content: $("content",this).text(),
                    url: $( "url" , this).text()
                };
            }).get();
            var $input = document.getElementById(search_id);
            var $resultContent = document.getElementById(content_id);
            $input.addEventListener('input', function(){
                var matchcounts = 0;
                var str='<ul class=\"search-result-list\">';
                var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
                $resultContent.innerHTML = "";
                if (this.value.trim().length > 1) {
                // perform local searching
                datas.forEach(function(data) {
                    var isMatch = true;
                    var content_index = [];
                    var data_title = data.title.trim().toLowerCase();
                    var data_content = data.content.trim().replace(/<[^>]+>/g,"").toLowerCase();
                    var data_url = data.url;
                    var index_title = -1;
                    var index_content = -1;
                    var first_occur = -1;
                    // only match artiles with not empty titles and contents
                    if(data_title != '' && data_content != '') {
                        keywords.forEach(function(keyword, i) {
                            index_title = data_title.indexOf(keyword);
                            index_content = data_content.indexOf(keyword);
                            if( index_title < 0 && index_content < 0 ){
                                isMatch = false;
                            } else {
                                if (index_content < 0) {
                                    index_content = 0;
                                }
                                if (i == 0) {
                                    first_occur = index_content;
                                }
                            }
                        });
                    }
                    // show search results
                    if (isMatch) {
                        matchcounts += 1;
                        str += "<li><a href='"+ decodeURIComponent(data_url) +"' class='search-result-title'>"+ data_title +"</a>";
                        var content = data.content.trim().replace(/<[^>]+>/g,"");
                        if (first_occur >= 0) {
                            // cut out 100 characters
                            var start = first_occur - 20;
                            var end = first_occur + 80;
                            if(start < 0){
                                start = 0;
                            }
                            if(start == 0){
                                end = 50;
                            }
                            if(end > content.length){
                                end = content.length;
                            }
                            var match_content = content.substring(start, end);
                            // highlight all keywords
                            keywords.forEach(function(keyword){
                                var regS = new RegExp(keyword, "gi");
                                match_content = match_content.replace(regS, "<b class=\"search-keyword\">"+keyword+"</b>");
                            });

                            str += "<p class=\"search-result\">" + match_content +"...</p>"
                        }
                        str += "</li>";
                    }
                })};
                str += "</ul>";
                if (matchcounts == 0) { str = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>' }
                if (keywords == "") { str = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>' }
                $resultContent.innerHTML = str;
            });
            proceedsearch();
        }
    });}

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched == false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };

    });

    $('.popup-btn-close').click(function(e){
      $('.popup').fadeOut(function() {
          $(".popoverlay").remove();
          $('body').css('overflow', '');
      });
    });
    $('.popup').click(function(e){
      e.stopPropagation();
    });
  </script>


  

  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
  <script>AV.initialize("6mFxqINb4RcjTGhNbtCzfWI1-gzGzoHsz", "c4qK91bIu9qFdGeimnKdriiK");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  
<script type="text/javascript" async src="//push.zhanzhang.baidu.com/push.js">
</script>


</body>
</html>
